package com.alongstudio.account.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 字典内容
 * @ClassName: DictionaryContent
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author 安陈琳
 * @date Nov 30, 2011 4:44:06 PM
 *
 */

@Entity
@Table(name="tbl_dict_content")
public class DictionaryContent {
	@Id
	@Column(name = "id", length=32)
	@GeneratedValue(generator = "identityGenerator")
	@GenericGenerator(name = "identityGenerator", strategy = "com.alongstudio.account.commons.utils.IdentityGenerator")
	private String id;
	@Column(name = "content_name", length = 50)
	private String contentName;
	@Column(length = 200)
	private String remark;
	@Column(name="sort_num")
	private Integer sortNum;
	@ManyToOne
	@JoinColumn(name = "fk_dict_type_id")
	DictionaryType dictType;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getContentName() {
		return contentName;
	}
	public void setContentName(String contentName) {
		this.contentName = contentName;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Integer getSortNum() {
		return sortNum;
	}
	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}
	public DictionaryType getDictType() {
		return dictType;
	}
	public void setDictType(DictionaryType dictType) {
		this.dictType = dictType;
	}
	
}
